package com.xja.springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class SpringBootController {

    @RequestMapping("list")
    public List<String> list(){
        List<String> nameList = new ArrayList<>();
        nameList.add("赵丽丽");
        nameList.add("马小军");
        nameList.add("tom");
        return nameList;
    }
}
